package com.ivanbiz.generic;

import java.util.Date;
import java.util.List;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import org.hibernate.Session;
/**
 *
 * @author User
 */
public interface GenericDAO {

    public void delete(Object obj) throws Exception;

    public void update(Object obj) throws Exception;

    public Object load(Class clasz, long id) throws Exception;

    public void save(Object obj) throws Exception;

    public List getAll(Class claz) throws Exception;

    public List getDataByLike(Class clazImpl, String variable, Object input) throws Exception;

    public List getDataByEquals(Class clazImpl, String variable, Object input) throws Exception;

    public Object getDataByEqual(Class clazImpl, String variable, Object input) throws Exception;

    public List getData(Class claz,Date start,Date end) throws Exception;
    
    public Session getSessionByGeneric()throws Exception;

}
